package com.rysima.wujiansima.demo;

import java.util.HashSet;

public class Demo2 {
    public static void main(String[] args) {
        HashSet<Student> hs = new HashSet<>();
        Student stu1 = new Student("物件",26,18,16);
        Student stu2 = new Student("物件",28,18,16);
        Student stu3 = new Student("胡涵",68,18,16);
        hs.add(stu1);
        hs.add(stu2);
        hs.add(stu3);
        for (Student h : hs) {
            System.out.println(h);
        }
    }
}
